package com.retail.xiaocui.common.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.retail.common.core.annotation.Excel;
import com.retail.common.core.web.domain.BaseEntity;

/**
 * 采购申请单对象 t_purchase
 *
 * @author retail
 * @date 2024-03-05
 */
public class Purchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采购单id */
    @Excel(name = "采购单id")
    private Integer procurementId;

    /** 采购人id */
    @Excel(name = "采购人id")
    private Integer userId;

    /** 状态(1新建 2未分配 3已分配 4.采购中 5采购完成) */
    @Excel(name = "状态(1新建 2未分配 3已分配 4.采购中 5采购完成)")
    private Integer procurementStatus;
    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal procurementSum;

    @Excel(name = "采购人名")
    private String nickName;

    @Excel(name = "联系方式")
    private String phonenumber;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date establishDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public String getnickName() {
        return nickName;
    }

    public void setnickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }


    public void setProcurementId(Integer procurementId)
    {
        this.procurementId = procurementId;
    }

    public Integer getProcurementId()
    {
        return procurementId;
    }
    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }

    public Integer getUserId()
    {
        return userId;
    }
    public void setProcurementStatus(Integer procurementStatus)
    {
        this.procurementStatus = procurementStatus;
    }

    public Integer getProcurementStatus()
    {
        return procurementStatus;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public void setProcurementSum(BigDecimal procurementSum)
    {
        this.procurementSum = procurementSum;
    }

    public BigDecimal getProcurementSum()
    {
        return procurementSum;
    }
    public void setEstablishDate(Date establishDate)
    {
        this.establishDate = establishDate;
    }

    public Date getEstablishDate()
    {
        return establishDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("procurementId", getProcurementId())
            .append("userId", getUserId())
            .append("procurementStatus", getProcurementStatus())
            .append("procurementSum", getProcurementSum())
            .append("establishDate", getEstablishDate())
            .append("updateTime", getUpdateTime())
            .append("nickName", getnickName())
            .append("phonenumber", getPhonenumber())
            .toString();
    }
}
